package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author chaoxiong.lei
 * @date 2019/2/14 16:08
 */
@Getter
@Setter
@ToString
public class SpecificationEntity {

    private static final long serialVersionUID = -1L;

    public SpecificationEntity() {
        corpid = "";
        name = "";
        value = "";
        sort = 0;
        addTime = DateTimeUtil.getInt();
        updateTime = DateTimeUtil.getInt();
        del = 0;
    }

    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 产品id(父产品的id)
     */
    private Long productId;
    /**
     * 规格名称 (比如：型号)
     */
    private String name;
    /**
     * 具体的值(["S","M","L","XL"])
     */
    private String value;
    /**
     * 排序字段
     */
    private Integer sort;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标志
     */
    private Integer del;

}
